import React from 'react';

interface TabProps {
    activeTab: 'images' | 'videos' | 'music';
    setActiveTab: (tab: 'images' | 'videos' | 'music') => void;
}

const Tab: React.FC<TabProps> = ({ activeTab, setActiveTab }) => {
    return (
        <div>
            <button onClick={() => setActiveTab('images')}>图片</button>
            <button onClick={() => setActiveTab('videos')}>视频</button>
            <button onClick={() => setActiveTab('music')}>音乐</button>
        </div>
    );
};

export default Tab;